package com.lb.pdm.mapper;

import com.lb.pdm.entity.HouseholdInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lb.pdm.entity.vo.HouseholdInfoVO;
import com.lb.pdm.entity.vo.HouseholdInfoVO2;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 户籍信息表 Mapper 接口
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Mapper
public interface HouseholdInfoMapper extends BaseMapper<HouseholdInfo> {
    List<HouseholdInfoVO> listHouseholders(@Param("name") String name,
                                           @Param("idCard") String idCard,
                                           @Param("address") String address,
                                           @Param("pageNum") Integer pageNum,
                                           @Param("pageSize") Integer pageSize);
    
    HouseholdInfoVO2 getPersonHousehold(@Param("personId") Long personId);
}
